<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
  <script src="__STATIC__/js/jquery-1.8.2.js"></script>
  <link href="/static/console/css/uploads.css" rel="stylesheet">
  <!-- upload_arr -->
  <link href="/static/console/plupload/plupload.css" rel="stylesheet">
  <!-- Select2 -->
  <link href="/static/console/css/select/select2.min.css" rel="stylesheet">
  <!-- sku -->
  <link href="/static/console/css/sku.css" rel="stylesheet" type="text/css">
  <script type="text/javascript" src="/static/console/js/uploadPreview.js"></script>
</head>
<body>
<div class="form-group">
  <label class="control-label col-md-3 col-sm-3 col-xs-12">图片上传：【320*250】</label>
  <div class="col-md-6 col-sm-6 col-xs-12">
    <div id="imgdiv">
      <img id="imgShow" src="__PUBLIC__/{$item.picUrl|default=''}"
           width="200" height="190"/>
    </div>
    <div class="uploader white">
      <input type="text" class="filename" name="picUrl"
             value="{$item.picUrl|default=''}" readonly/>
      <input type="button" name="file" class="button" value="上传..."/>
      <input type="file" id="up_img" name="picUrl"
             value='{$item.picUrl|default=""}'/>
    </div>
  </div>
</div>
<script src="/static/console/js/upload.photos.js"></script>
<script type="text/javascript" src="/static/console/plupload/plupload.full.min.js"></script>
<script>
  // upload
  new uploadPreview({UpBtn: "up_img", DivShow: "imgdiv", ImgShow: "imgShow"});
</script>
</body>
</html>